﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 玩家控制器
/// </summary>
public class PlayerController : BaseManager<PlayerController>
{
    PlayerObject player;
    public PlayerObject Player { get => player; set => player = value; }
    public PlayerController()
    {

    }
    public void Init()
    {
        EventService.AddEventListener(E_Event_Type.CreatPlayer, CreatPlayer);
    }
    void CreatPlayer()
    {
        Player = new PlayerObject();
    }
    public void Recycle()
    {
        player.Recycle();
        player = null;
    }



}



